const Router=require('koa-router')
const router=new Router({prefix:'/WantBuy'})
const {sendWantBuy,getWantList}=require('../controller/WantBuy.controller')
//中间件
const {auth}=require('../middleWare/auth.middleware')
//发布求购
router.post('/sendWantBuy',auth,sendWantBuy)
//获得求购列表
router.get('/getWantBuy',getWantList)
module.exports=router